package cn.zhiran.org.mapper;

import cn.zhiran.org.domain.Department;
import cn.zhiran.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {

    List<Department> loadAll();

    Department loadById(Long id);

    void delete(Long id);

    void update(Department department);

    void insert(Department department);

    //总条数
    Integer queryCount(DepartmentQuery query);

    //每页数据
    List<Department> queryData(DepartmentQuery query);

}
